package com.minimvc.interfaces
{
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	
	/**
	 * 内部视图调停者管理器
	 * @author crl
	 * 
	 */	
	public interface IView extends IEventDispatcher
	{
		/**
		 * 注册一个视图中介; 
		 * @param mediator
		 * 
		 */		
		function registerMediator( mediator:IMediator ) : void;
		
		/**
		 * 取得 一个视图中介; 
		 * @param mediatorName
		 * @return 
		 * 
		 */		
		function getMediator( mediatorName:String ) : IMediator;
		
		/**
		 * 删除一个视图中介;  
		 * @param mediatorName
		 * @return 
		 * 
		 */		
		function removeMediator( mediatorName:String ) : IMediator;
		
		/**
		 * 是否存在相应的视图中介;  
		 * @param mediatorName
		 * @return 
		 * 
		 */		
		function hasMediator( mediatorName:String ) : Boolean;
		
	}
	
}